from bs4 import BeautifulSoup

file_path = "D:\zuoye\ccc.html"
with open(file_path, "r", encoding="utf-8") as file:
    html_content = file.read()

soup = BeautifulSoup(html_content, "lxml")

for link in soup.find_all("a"):
    print(link.get("href"))

title = soup.find("title").text
print("Title:", title)